<template>
  <div class="exam">
    <van-nav-bar placeholder title="考试详情" fixed left-arrow />
    <div class="exam__swipe">
      <img src="@/assets/images/login.png" />
    </div>
    <div class="exam__content">
      <div class="exam__title">新员工培训计划</div>
      <div class="exam__subtitle">本次参与考试人数10人</div>
      <div class="exam__message">
        <label>任务奖励</label>
        <div><span>50</span>金币 <span>200</span>经验</div>
      </div>
    </div>
    <div class="exam__content" style="margin-top: 8px">
      <div class="exam__row">
        <label>考试时长：</label>
        <span>00:32:22</span>
      </div>
      <div class="exam__row">
        <label>试题数量：</label>
        <span>10题</span>
      </div>
      <div class="exam__row">
        <label>合格标准：</label>
        <span>总分100分，合格80分</span>
      </div>
      <div class="exam__row">
        <label>尝试次数：</label>
        <span>无限次</span>
      </div>
    </div>

    <div>
      <van-action-bar>
        <van-action-bar-icon text="记录">
            <template #icon>
                <img class="icon" src="@/assets/images/jl.png" />
            </template>
        </van-action-bar-icon>
        <van-action-bar-icon text="排行">
            <template #icon>
                <img class="icon" src="@/assets/images/ph.png" />
            </template>
        </van-action-bar-icon>
        <van-action-bar-button
          type="success"
          color="linear-gradient(270deg, #1CA893 0%, #1BCD74 100%)"
          text="开始调整（无限次）"
        />
      </van-action-bar>
    </div>
  </div>
</template>
<script name="ExamDetail" setup></script>
<style lang="scss" scoped>
.exam {
  &__swipe {
    position: relative;
    height: 207px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  &__content {
    padding: 16px;
    background-color: #fff;
  }
  &__title {
    font-size: 18px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    color: #1e1e28;
    line-height: 25px;
    margin-bottom: 10px;
  }
  &__subtitle {
    font-size: 14px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #676b6b;
    line-height: 20px;
  }
  &__message {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #2f3444;
    line-height: 20px;
    margin-top: 10px;
    label {
      margin-right: 8px;
    }
    span {
      color: #ffac24;
    }
  }
  &__row {
    label {
      font-size: 14px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #676b6b;
      line-height: 32px;
    }
    span {
      font-size: 14px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #272b2d;
      line-height: 32px;
    }
  }
  .icon{
    width: 22px;
    height: 22px;
  }
}
</style>